const db = require('../../../libs/db.config');

module.exports = async (data) => {
    const newData = data;
    // const searchSQL = `SELECT * FROM user WHERE userName = "${username}"`;
    const searchSQL = 'insert into forumStar set ? ';
    return await db.query(searchSQL, [newData]);
};
